import { Component, OnInit } from '@angular/core';
declare var $:any; 


@Component({
    moduleId: module.id,
    selector: 'myIndex',
    styleUrls:['../../assets/css/index.css'],
    templateUrl: 'index.component.html'
})

export class indexComponent implements OnInit {
    
    constructor() {
        
     }
     
     
    navbarLists =[
        {nav_header:"会员管理",nav_child:[{href:"member",nav_child_name:"会员管理"}]},
        {nav_header:"产品管理",nav_child:[{href:"produce",nav_child_name:"产品管理"}]},
        {nav_header:"订单管理",nav_child:[{href:"order",nav_child_name:"查看订单"}]},
        {nav_header:"财务管理",nav_child:[{href:"money_manage",nav_child_name:"提现管理"},{href:"moneyDetail",nav_child_name:"资金明细"}]},
        {nav_header:"权限管理",nav_child:[{href:"admin",nav_child_name:"管理员"},{href:"admin_power",nav_child_name:"权限组"},{href:"admin_node",nav_child_name:"权限节点"}]},
        {nav_header:"系统管理",nav_child:[{href:"system_keyword",nav_child_name:"系统关键字"},{href:"system_focus",nav_child_name:"焦点图"},{href:"system_dictionary",nav_child_name:"数据字典"},{href:"system_config",nav_child_name:"站点参数配置"}]}
    ]
    showList:boolean=false;
    showNext(){
       
        
    }
    ngOnInit() { 
        $("#navbar").on("mousedown","a",function(){
            $(this).parent().siblings().removeClass("collapse active0")
        
        })
        $("#navbar").on("mouseup","a",function(){
        
            $(this).parent().toggleClass("collapse active0")
        })
    }
}